package com.community.web.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.community.model.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.community.web.user.vo.OrdersQueryVo;
import com.community.web.user.vo.OrdersVo;

import java.util.List;

/**
* @author admin
* @description 针对表【orders】的数据库操作Service
* @createDate 2024-07-02 10:56:56
*/
public interface OrdersService extends IService<Orders> {

    Orders add(Long userId, List<Long> cartIdList);

    IPage<OrdersVo> pageList(Page<OrdersVo> page, OrdersQueryVo queryVo);

    OrdersVo selectDetailList(String ordersNo);

    void payment(Long userId, Orders orders);
}
